﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using A2DFramework.AOPService;

namespace A2DFramework.AOPService.Core
{
    public class AOPServiceEnabledAttribute : BaseAOPProxyAttribute
    {
        public override MarshalByRefObject CreateInstance(Type serverType)
        {
            MarshalByRefObject target = base.CreateInstance(serverType);
            CoreAOPRealProxy rp = new CoreAOPRealProxy(serverType, target);
            MarshalByRefObject obj = (MarshalByRefObject)rp.GetTransparentProxy();
            return obj;
        }
    }
}
